package forms;

import java.util.Date;

import org.apache.struts.action.ActionForm;
import org.apache.struts.upload.FormFile;

import util.DateFormatter;

public class uploadfileform extends ActionForm{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String firstArea="";
	private String secondArea="";
	private String filename="";
	private String uploaddate="";
	private FormFile file = null;
	
	
	
	public FormFile getFile() {
		return file;
	}
	public void setFile(FormFile file) {
		this.file = file;
	}
	public String getFirstArea() {
		return firstArea;
	}
	public void setFirstArea(String firstArea) {
		this.firstArea = firstArea;
	}
	public String getSecondArea() {
		return secondArea;
	}
	public void setSecondArea(String secondArea) {
		this.secondArea = secondArea;
	}
	public String getFilename() {
		return file.getFileName();
	}
	public void setFilename(String filename) {
		this.filename = filename;
	}
	public String getUploaddate() {
		uploaddate = DateFormatter.format(new Date());
		return uploaddate;
	}
	public void setUploaddate(String uploaddate) {
		this.uploaddate = uploaddate;
	}
	
	
	
}
